package com.yunhe.common.model.base;

import com.yunhe.common.constant.LanguageConsts;
import com.yunhe.common.i18n.I18nMessageUtil;
import com.yunhe.common.i18n.LanguageHolder;

/**
 * 告警级别
 * @author duanxiaoyong
 */
public class AlarmLevelDTO extends StatusType{

    private Boolean activity;
    private String description;

    public Boolean getActivity() {
        return activity;
    }

    public void setActivity(Boolean activity) {
        this.activity = activity;
    }

    public String getDescription() {
        if (LanguageConsts.TYPE.EN.value().equals(LanguageHolder.getLanguage())) {
            return I18nMessageUtil.getMessage(LanguageHolder.getLanguage(), description);
        } else {
            return description;
        }
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
